-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CinderSpecCore struct #336
Add CinderSpecCore struct #336
Conversation
/test cinder-operator-build-deploy-tempest |
b701dd4
to
f720d56
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dan, I assume this is all part of the migration to using "openstackversions" to manage container images. What's the state of that effort? We don't want to lose the ability to manage cinder-volume's container images if there will be a time lag between merging this PR and when "openstackversions" will be ready.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approach looks good to me.
Besides the changes requested by Alan around indentation, I think we should change CinderAPITemplate and other templates to use their Core equivalent to remove code duplication.
This version of the struct (called "core") is meant to be used via the OpenStackControlplane. It is the same as CinderSpec only it is missing the containerImages from the nested API, Backup, Scheduler, and Volume specs. The Default() function for webhooks has been split accordingly. Jira: OSPRH-4835
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Akrog, dprince The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
64cafe6
into
openstack-k8s-operators:main
…anup Webhook cleanup
This version of the struct (called "core") is meant to be used via the OpenStackControlplane. It is the same as CinderSpec only it is missing the containerImages parameters from the nested API, Backup, Scheduler, and Volume specs.
This is useful to prevent users from interacting with these
parameters directly via the OpenStackControlplane